<style scoped>
    .site-recommend {
        width: 100%;
        margin: auto;
        /* background-color: #F8FAFC; */
        /* color: #f8fafc; */
    }

    .title-container {
        margin: 50px auto;
    }

    .title-img {
        height: 24px;
        line-height: 32px;
        margin: auto 3px;
    }

    .category-list {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(4, 25%);
        grid-template-rows: auto;
        grid-auto-flow: row;
        justify-items: center;
    }

    .category-card {
        /* width: 270px; */
        float: left;
        margin: 20px;
        text-align: center;
    }

    .category-img {
        width: 170px;
    }

    a {
        text-decoration: none;
        color: #657180;
    }

    .ivu-divider-horizontal {
        margin: 10px;
    }

    .pricetag {
        color: #ff5e57;
        margin: 4px;
    }

    @media screen and (max-width: 1199px) {
        .category-list {
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            justify-content: center;
        }
    }

     @media screen and (max-width: 780px) {
        .category-card {
            width: 140px;
        }

        .category-card img {
            width: 120px;
        }
    }

    @media screen and (max-width: 500px) {
        .category-card {
            width: 140px;
            margin: 10px;
        }
    }
</style>
<template>
    <div class="site-recommend">
        <div class="title-container">
            <Divider type="horizontal" orientation="center">
                <h3 style="color: #4D555D">
                    <img src="static/img/decorate/star-01.png" alt="stars" class="title-img">
                    好 / 物 / 推 / 荐
                    <img src="static/img/decorate/star-01.png" alt="stars" class="title-img">
                </h3>
            </Divider>
            <div class="category-container">
                <div class="category-list">
                    <Card class="category-card">
                        <a href="http://you.163.com/item/detail?id=3407065&_stat_area=2&_stat_referer=search&_stat_query=%E5%90%B9%E9%A3%8E%E6%9C%BA&_stat_count=3&_stat_searchversion=0.6"
                           target="_blank">
                            <img src="static/img/category/category-1.png" alt="category" class="category-img">
                            <Divider></Divider>
                            <h4>远红外线近0辐射负离子电吹风</h4>
                            <h3 class="pricetag">￥199</h3>
                        </a>
                    </Card>
                    <Card class="category-card">
                        <a href="http://you.163.com/item/detail?id=1114011&_stat_manufacturer=%E6%96%B0%E7%A7%80%E4%B8%BD%E5%88%B6%E9%80%A0%E5%95%86"
                           target="_blank">
                            <img src="static/img/category/category-2.png" alt="category" class="category-img">
                            <Divider></Divider>
                            <h4>纯PC拉链斜纹拉杆箱</h4>
                            <h3 class="pricetag">￥299</h3>
                        </a>
                    </Card>
                    <Card class="category-card">
                        <a href="http://you.163.com/item/detail?id=1021014&_stat_area=4&_stat_referer=search&_stat_query=%E7%9C%BC%E7%BD%A9&_stat_count=16&_stat_searchversion=0.6"
                           target="_blank">
                            <img src="static/img/category/category-3.png" alt="category" class="category-img">
                            <Divider></Divider>
                            <h4>日式和风便携眼罩</h4>
                            <h3 class="pricetag">￥29</h3>
                        </a>
                    </Card>
                    <Card class="category-card">
                        <a href="http://you.163.com/item/detail?id=1486020&_stat_area=mod_10_item_10&_stat_id=1013001&_stat_referer=itemList"
                           target="_blank">
                            <img src="static/img/category/category-4.png" alt="category" class="category-img">
                            <Divider></Divider>
                            <h4>男士泡沫洗面奶</h4>
                            <h3 class="pricetag">￥59</h3>
                        </a>
                    </Card>
                    <Card class="category-card">
                        <a href="http://you.163.com/item/detail?id=1425007&_stat_area=mod_14_item_7&_stat_id=1005002&_stat_referer=itemList"
                            target="_blank">
                            <img src="static/img/category/category-5.png" alt="category" class="category-img">
                            <Divider></Divider>
                            <h4>西班牙珍藏干红葡萄酒</h4>
                            <h3 class="pricetag">￥168</h3>
                        </a>
                    </Card>
                    <Card class="category-card">
                        <a href="http://you.163.com/item/detail?id=1325028&_stat_area=2&_stat_referer=search&_stat_query=%E5%8F%A3%E7%BA%A2&_stat_count=3&_stat_searchversion=0.6"
                            target="_blank">
                            <img src="static/img/category/category-6.png" alt="category" class="category-img">
                            <Divider></Divider>
                            <h4>小方管系列 哑光唇膏</h4>
                            <h3 class="pricetag">￥89</h3>
                        </a>
                    </Card>
                    <Card class="category-card">
                        <a href="http://you.163.com/item/detail?id=3411074&_stat_area=mod_7_item_4&_stat_id=1013001&_stat_referer=itemList"
                            target="_blank">
                            <img src="static/img/category/category-7.png" alt="category" class="category-img">
                            <Divider></Divider>
                            <h4>澳洲坚果籽油护手霜</h4>
                            <h3 class="pricetag">￥19.9</h3>
                        </a>
                    </Card>
                    <Card class="category-card">
                        <a href="http://you.163.com/item/detail?id=1505027&_stat_area=mod_10_item_6&_stat_id=1013001&_stat_referer=itemList"
                            target="_blank">
                            <img src="static/img/category/category-8.png" alt="category" class="category-img">
                            <Divider></Divider>
                            <h4>深补水系列 活颜保湿乳</h4>
                            <h3 class="pricetag">￥159</h3>
                        </a>
                    </Card>
                </div>
            </div>
        </div>
    </div>
</template>
<script>
    export default {};
</script>
